package com.example.myshortcutdemo.lekecanary

import android.graphics.Color
import android.graphics.PorterDuff
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.example.myshortcutdemo.R
import com.example.myshortcutdemo.databinding.ActivityLeakcanaryLayoutBinding

/**
 * @author tgw
 * @date 2022/5/16
 * @describe 检测泄漏类
 */
class LeakCanaryCheckActivity : AppCompatActivity() {
    private lateinit var mBind: ActivityLeakcanaryLayoutBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBind = DataBindingUtil.setContentView(
            this,
            R.layout.activity_leakcanary_layout
        )

        mBind.btCheckCanary.setOnClickListener(){
            HomeWorkInClassStyle.instance.changeText(mBind.btCheckCanary,"文本改变")
        }

        mBind.img.setColorFilter(Color.parseColor("#FF3B83FC"), PorterDuff.Mode.OVERLAY)
    }
}